package com.buymobile.service;

public class BusinessException extends RuntimeException {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = -6463634739384078477L;
	
	private String errorCode;
	
	public BusinessException(String errorCode,Throwable ex){
		super(errorCode,ex);
		this.errorCode = errorCode;
	}
	
	public BusinessException(String errorCode){
		super(errorCode);
		this.errorCode = errorCode;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	

}
